/*
 *    This file is part of SSHTunneler.
 *
 *    Copyright 2009 Jean-Sebastien Gelinas <calestar@gmail.com>
 *
 *    SSHTunneler is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    SSHTunneler is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with SSHTunneler.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package sshtunneler.packager.data;

public class TunnelerConfig {

	static public TunnelerConfig inst = new TunnelerConfig();

	private TunnelerConfig() {
	}

	private boolean prog_update = false;
	private boolean ask_username = true;
	private boolean overwrite_all = true;
	private boolean debug_link = false;
	private boolean start_minimized = true;
	private boolean connect_to_all_on_start = true;
	private boolean hide_tool_config = false;

	public boolean isAsk_username() {
		return this.ask_username && !this.isProg_update();
	}

	public void setAsk_username(boolean ask_username) {
		this.ask_username = ask_username;
	}

	public boolean isOverwrite_all() {
		return this.overwrite_all && !this.isProg_update();
	}

	public boolean isHide_tool_config() {
		return this.hide_tool_config && !this.isProg_update();
	}

	public void setHide_tool_config(boolean hide_tool_config) {
		this.hide_tool_config = hide_tool_config;
	}

	public void setOverwrite_all(boolean overwrite_all) {
		this.overwrite_all = overwrite_all;
	}

	public boolean isDebug_link() {
		return this.debug_link && !this.isProg_update();
	}

	public void setDebug_link(boolean debug_link) {
		this.debug_link = debug_link;
	}

	public boolean isStart_minimized() {
		return this.start_minimized && !this.isProg_update();
	}

	public void setStart_minimized(boolean start_minimized) {
		this.start_minimized = start_minimized;
	}

	public boolean isConnect_to_all_on_start() {
		return this.connect_to_all_on_start && !this.isProg_update();
	}

	public void setConnect_to_all_on_start(boolean connect_to_all_on_start) {
		this.connect_to_all_on_start = connect_to_all_on_start;
	}

	public boolean isProg_update() {
		return this.prog_update;
	}

	public void setProg_update(boolean prog_update) {
		this.prog_update = prog_update;
	}
}
